<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        table{
            border-collapse: collapse;
            width: 900px;
            margin: 0 auto;
            text-align: center;
        }
        td{
            border: 1px solid black;
            height: 50px;
            width: 100px;
            background-color: pink ;
        }
    </style>
</head>

<body>
    <p style="text-align: center;"><b>九九乘法表</b></p>
    <table>
        <script>
            for (let i = 1; i <= 9; i++) {
                document.write(`<tr></tr>`)
                for (let j = 1; j <= i; j++) {
                    document.write(`<td>${j}x${i}=${i * j}</td>\t`);
                }
            }
        </script>
    </table>
</body>

</html>